<extend name="Public:base"/>

<block name="body">
<h2>Signup</h2>
<div class="row">
<div class="col-md-4">
<form method="post" action="{:U('User/register')}">
    <div class="form-group">
        <label for="username">Username</label>
        <input type="text" class="form-control" name="username" id="username" />
    </div>
    <div class="form-group">
        <label for="email">Email</label>
        <input type="email" class="form-control" name="email" id="email" />
    </div>
    <div class="form-group">
        <label for="phone">Phone</label>
        <input type="phone" class="form-control" name="phone" id="phone" />
    </div>
    <div class="form-group">
        <label for="password">Password</label>
        <input type="Password" class="form-control" name="password" id="password" />
    </div>
    <div class="form-group">
        <label for="passwordAgain">Password Confirm</label>
        <input type="Password" class="form-control" name="passwordagain" id="passwordagain" />
    </div>
    <?php if (isset($errmsg)): ?>
    <div class="alert alert-danger" role="alert">{$errmsg}</div>
    <?php endif; ?>
    <button type="submit" name="submit" class="btn btn-primary">Signup</button>
    <a href="{:U('User/login')}" class="btn btn-default">Or Login?</a>
</form>
</div>
</div>
</block>
